<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>Title</title>
    <%@include file="/static/common/common.jsp"%>
    <script src="/static/js/department/department.js"></script>

</head>
<body>
<table id="dept_datagrid" >

</table>

<div id="dept_toolbar">
        <a class="easyui-linkbutton" iconCls="icon-add2 iconfont" plain="true" data-cmd="add">新增</a>
        <a class="easyui-linkbutton" iconCls="icon-bianji iconfont" plain="true" data-cmd="edit">编辑</a>
    <a id="state_btn" class="easyui-linkbutton" iconCls="iconfont icon-shanchu"
       plain="true" data-cmd="del">删除</a>
</div>


<div id="form_btns">
    <a class="easyui-linkbutton" iconCls="iconfont icon-dui" plain="true" data-cmd="save">保存</a>
    <a class="easyui-linkbutton" iconCls="iconfont icon-jujue" plain="true" data-cmd="cancel">取消</a>
</div>


<div id="dept_dialog">
    <form method="post" id="dept_form">
        <input type="hidden" name="id" id="deptId"/>
        <table align="center" >
            <tbody>
            <tr>
                <td>部门名称:</td>
                <td><input name="name" class="easyui-textbox"
                           invalidMessage="该部门已存在"
                           validType="remote['/department/validataName.do?id='+deptId.value,'name']"/>
                </td>
            </tr>
            <tr>
                <td>部门编码:</td>
                <td><input name="sn" class="easyui-textbox" /></td>
            </tr>


            <tbody>
        </table>
    </form>
</div>

</body>
</html>
